package com.example.emos.api.db.dao;

import com.example.emos.api.db.pojo.TbMeetingRoom;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

@Mapper
public interface TbMeetingRoomDao {
    public ArrayList<HashMap> searchAllMeetingRoom();
    
    public HashMap searchById(int id);
    
    public ArrayList<String> searchFreeMeetingRoom(HashMap param);

    /**
     * 分页查询
     * @param param
     * @return
     */
    public ArrayList<HashMap> searchMeetingRoomByPage(HashMap param);
    public long searchMeetingRoomCount(HashMap param);

    /**
     * 新增会议室
     * @param meetingRoom
     * @return
     */
    public int insert(TbMeetingRoom meetingRoom);

    /**
     * 修改会议室
     * @param meetingRoom
     * @return
     */
    public int update(TbMeetingRoom meetingRoom);

    /**
     * 删除会议室
     * @param ids
     * @return
     */
    public boolean searchCanDelete(Integer[] ids);
    public int deleteMeetingRoomByIds(Integer[] ids);


}
